diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-01-29 16:31:47 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-01-29 16:44:53 +0100 |
commit | b476659ac888618fdb01c1316db073237c9222d3 (patch) | |
tree | 05f722eeabf3de7fb0be5f53421bc32be467e03d /apps/files/src/models/Tab.js | |
parent | cd6a193793f5b0f34fbe5d9c4d52e54f94494237 (diff) | |
download | nextcloud-server-b476659ac888618fdb01c1316db073237c9222d3.tar.gz nextcloud-server-b476659ac888618fdb01c1316db073237c9222d3.zip |
Fix legacy tabs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/models/Tab.js')
-rw-r--r-- | apps/files/src/models/Tab.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files/src/models/Tab.js b/apps/files/src/models/Tab.js index 2a045551c54..fd1ea9888d9 100644 --- a/apps/files/src/models/Tab.js +++ b/apps/files/src/models/Tab.js @@ -24,23 +24,23 @@ export default class Tab { #component #legacy - #name + #id #enabled /** * Create a new tab instance * - * @param {string} name the name of this tab + * @param {string} id the unique id of this tab * @param {Object} component the vue component * @param {Function} [enabled] function that returns if the tab should be shown or not * @param {boolean} [legacy] is this a legacy tab */ - constructor(name, component, enabled = () => true, legacy) { + constructor(id, component, enabled = () => true, legacy) { if (typeof enabled !== 'function') { throw new Error('The enabled argument should be a function') } - this.#name = name + this.#id = id this.#component = component this.#enabled = enabled this.#legacy = legacy === true @@ -51,8 +51,8 @@ export default class Tab { } - get name() { - return this.#name + get id() { + return this.#id } get component() { |