PluginProbe
Plugin Detective – Troubleshooting Conflicts / 1.1.4
Plugin Detective – Troubleshooting Conflicts v1.1.4
1.2.35 1.2.33 1.2.32 1.2.31 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2 1.2.1 1.2.10 1.2.12 1.2.13 1.2.14 1.2.16 1.2.19 1.2.20 1.2.22 1.2.23 1.2.24 All 54 releases
plugin-detective / troubleshoot / app / src / store / mutations.js

mutations.js in Plugin Detective – Troubleshooting Conflicts 1.1.4, at troubleshoot/app/src/store/mutations.js

50 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import Vue from 'vue'
2 import _ from 'lodash'
3 import defaultTranslations from './strings'
4
5 export default {
6 defineApi (state, api) {
7 state.api = api
8 },
9 defineNonce (state, value) {
10 Vue.set(state.api, 'nonce', value)
11 },
12 defineRequestProtocol (state, value) {
13 state.requestProtocol = value
14 },
15 defineTranslations (state, translations) {
16 let strings = _.isEmpty(translations) ? defaultTranslations : translations
17 state.translations = strings
18 },
19 defineUsername (state, value) {
20 state.username = value
21 },
22 definePassword (state, password) {
23 state.password = password
24 },
25 defineCaseUrl (state, value) {
26 if (!state.activeCase) {
27 return
28 }
29 Vue.set(state.activeCase, 'url', value)
30 },
31 defineRequired (state, list) {
32 if (!state.activeCase) {
33 return
34 }
35 Vue.set(state.activeCase, 'required_plugins', list)
36 },
37 defineCase (state, value) {
38 state.activeCase = value
39 },
40 defineUserId (state, value) {
41 state.user_id = value
42 },
43 removeImage (state, pluginKey) {
44 Vue.set(state.activeCase.all_suspects[pluginKey], 'icon', null)
45 },
46 deactivatePlugin (state, pluginKey) {
47 Vue.set(state.activeCase.all_suspects[pluginKey], 'deactivated', true)
48 }
49 }
50