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:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-11-13 15:05:10 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-19 13:55:33 +0300
commitec01e0a790448fff38364f629a4de4edb5d465bf (patch)
tree8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /apps/settings/src/store/apps.js
parent5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff)
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0. - [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases) - [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0) Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/settings/src/store/apps.js')
-rw-r--r--apps/settings/src/store/apps.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/settings/src/store/apps.js b/apps/settings/src/store/apps.js
index 47698382904..309932ada08 100644
--- a/apps/settings/src/store/apps.js
+++ b/apps/settings/src/store/apps.js
@@ -28,7 +28,7 @@ const state = {
categories: [],
updateCount: 0,
loading: {},
- loadingList: false
+ loadingList: false,
}
const mutations = {
@@ -65,24 +65,24 @@ const mutations = {
appId = [appId]
}
appId.forEach((_id) => {
- let app = state.apps.find(app => app.id === _id)
+ const app = state.apps.find(app => app.id === _id)
app.error = error
})
},
clearError(state, { appId, error }) {
- let app = state.apps.find(app => app.id === appId)
+ const app = state.apps.find(app => app.id === appId)
app.error = null
},
enableApp(state, { appId, groups }) {
- let app = state.apps.find(app => app.id === appId)
+ const app = state.apps.find(app => app.id === appId)
app.active = true
app.groups = groups
},
disableApp(state, appId) {
- let app = state.apps.find(app => app.id === appId)
+ const app = state.apps.find(app => app.id === appId)
app.active = false
app.groups = []
if (app.removable) {
@@ -100,8 +100,8 @@ const mutations = {
},
updateApp(state, appId) {
- let app = state.apps.find(app => app.id === appId)
- let version = app.update
+ const app = state.apps.find(app => app.id === appId)
+ const version = app.update
app.update = null
app.version = version
state.updateCount--
@@ -133,7 +133,7 @@ const mutations = {
} else {
Vue.set(state.loading, id, false)
}
- }
+ },
}
const getters = {
@@ -150,7 +150,7 @@ const getters = {
},
getUpdateCount(state) {
return state.updateCount
- }
+ },
}
const actions = {
@@ -197,7 +197,7 @@ const actions = {
if (!Array.isArray(appId)) {
context.commit('setError', {
appId: apps,
- error: t('settings', 'Error: This app can not be enabled because it makes the server unstable')
+ error: t('settings', 'Error: This app can not be enabled because it makes the server unstable'),
})
}
})
@@ -207,7 +207,7 @@ const actions = {
context.commit('stopLoading', 'install')
context.commit('setError', {
appId: apps,
- error: error.response.data.data.message
+ error: error.response.data.data.message,
})
context.commit('APPS_API_FAILURE', { appId, error })
})
@@ -233,7 +233,7 @@ const actions = {
context.commit('stopLoading', 'install')
context.commit('setError', {
appId: apps,
- error: error.response.data.data.message
+ error: error.response.data.data.message,
})
context.commit('APPS_API_FAILURE', { appId, error })
})
@@ -320,7 +320,7 @@ const actions = {
return false
})
.catch((error) => context.commit('API_FAILURE', error))
- }
+ },
}