Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-05-28 19:51:33 +0300
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2021-06-02 18:10:01 +0300
commitaef00ddeaf4bfa14a5f99a5e462623624202ad70 (patch)
treed1f24a239f1c030ac784185edd7f650960f750f6 /apps/files_sharing/src/services
parentd9a9714675eaeca689302eea8e432ff32ca2f048 (diff)
Replace proposal-class-private-properties by regular properties
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/services')
-rw-r--r--apps/files_sharing/src/services/ExternalLinkActions.js10
-rw-r--r--apps/files_sharing/src/services/ShareSearch.js10
-rw-r--r--apps/files_sharing/src/services/TabSections.js8
3 files changed, 14 insertions, 14 deletions
diff --git a/apps/files_sharing/src/services/ExternalLinkActions.js b/apps/files_sharing/src/services/ExternalLinkActions.js
index 1a4b0c20b93..6bda05e166e 100644
--- a/apps/files_sharing/src/services/ExternalLinkActions.js
+++ b/apps/files_sharing/src/services/ExternalLinkActions.js
@@ -22,14 +22,14 @@
export default class ExternalLinkActions {
- #state;
+ _state;
constructor() {
// init empty state
- this.#state = {}
+ this._state = {}
// init default values
- this.#state.actions = []
+ this._state.actions = []
console.debug('OCA.Sharing.ExternalLinkActions initialized')
}
@@ -41,7 +41,7 @@ export default class ExternalLinkActions {
* @returns {Object} the data state
*/
get state() {
- return this.#state
+ return this._state
}
/**
@@ -53,7 +53,7 @@ export default class ExternalLinkActions {
*/
registerAction(action) {
if (typeof action === 'object' && action.icon && action.name && action.url) {
- this.#state.actions.push(action)
+ this._state.actions.push(action)
return true
}
console.error('Invalid action provided', action)
diff --git a/apps/files_sharing/src/services/ShareSearch.js b/apps/files_sharing/src/services/ShareSearch.js
index be0bd8c9ffa..a96822223c5 100644
--- a/apps/files_sharing/src/services/ShareSearch.js
+++ b/apps/files_sharing/src/services/ShareSearch.js
@@ -22,14 +22,14 @@
export default class ShareSearch {
- #state;
+ _state;
constructor() {
// init empty state
- this.#state = {}
+ this._state = {}
// init default values
- this.#state.results = []
+ this._state.results = []
console.debug('OCA.Sharing.ShareSearch initialized')
}
@@ -41,7 +41,7 @@ export default class ShareSearch {
* @returns {Object} the data state
*/
get state() {
- return this.#state
+ return this._state
}
/**
@@ -61,7 +61,7 @@ export default class ShareSearch {
addNewResult(result) {
if (result.displayName.trim() !== ''
&& typeof result.handler === 'function') {
- this.#state.results.push(result)
+ this._state.results.push(result)
return true
}
console.error('Invalid search result provided', result)
diff --git a/apps/files_sharing/src/services/TabSections.js b/apps/files_sharing/src/services/TabSections.js
index fd32291a4e4..18fe37299f0 100644
--- a/apps/files_sharing/src/services/TabSections.js
+++ b/apps/files_sharing/src/services/TabSections.js
@@ -22,21 +22,21 @@
export default class TabSections {
- #sections;
+ _sections;
constructor() {
- this.#sections = []
+ this._sections = []
}
/**
* @param {registerSectionCallback} section To be called to mount the section to the sharing sidebar
*/
registerSection(section) {
- this.#sections.push(section)
+ this._sections.push(section)
}
getSections() {
- return this.#sections
+ return this._sections
}
}