diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:31:39 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:35:55 +0200 |
commit | a384b4a97a2a4444d8e2c831765dbf35c8da0db2 (patch) | |
tree | 2bd6a62f0707c85fa9bb9322e1aea90a3b0f4305 /core/src/OCP | |
parent | 0f8aca9d87db9022fe942a3d3fbb11433e152676 (diff) | |
download | nextcloud-server-a384b4a97a2a4444d8e2c831765dbf35c8da0db2.tar.gz nextcloud-server-a384b4a97a2a4444d8e2c831765dbf35c8da0db2.zip |
Bump @nextcloud/eslint-config and peers
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/OCP')
-rw-r--r-- | core/src/OCP/whatsnew.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/OCP/whatsnew.js b/core/src/OCP/whatsnew.js index c0df8af7b3f..17c9eeabce2 100644 --- a/core/src/OCP/whatsnew.js +++ b/core/src/OCP/whatsnew.js @@ -59,14 +59,14 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { menuItem.className = 'menuitem' text = document.createElement('span') - text.innerText = t('core', 'New in') + ' ' + data['ocs']['data']['product'] + text.innerText = t('core', 'New in') + ' ' + data.ocs.data.product text.className = 'caption' menuItem.appendChild(text) icon = document.createElement('span') icon.className = 'icon-close' icon.onclick = function() { - dismiss(data['ocs']['data']['version'], dismissOptions) + dismiss(data.ocs.data.version, dismissOptions) } menuItem.appendChild(icon) @@ -74,8 +74,8 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { list.appendChild(item) // Highlights - for (const i in data['ocs']['data']['whatsNew']['regular']) { - const whatsNewTextItem = data['ocs']['data']['whatsNew']['regular'][i] + for (const i in data.ocs.data.whatsNew.regular) { + const whatsNewTextItem = data.ocs.data.whatsNew.regular[i] item = document.createElement('li') menuItem = document.createElement('span') @@ -94,11 +94,11 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { } // Changelog URL - if (!_.isUndefined(data['ocs']['data']['changelogURL'])) { + if (!_.isUndefined(data.ocs.data.changelogURL)) { item = document.createElement('li') menuItem = document.createElement('a') - menuItem.href = data['ocs']['data']['changelogURL'] + menuItem.href = data.ocs.data.changelogURL menuItem.rel = 'noreferrer noopener' menuItem.target = '_blank' |