Delete some additional unused Vue components.
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
import optionsinput from './options_input'
|
||||
import { emitEvent } from '../lib/emitters'
|
||||
|
||||
export default {
|
||||
name: 'environment-role',
|
||||
|
||||
components: {
|
||||
optionsinput,
|
||||
},
|
||||
|
||||
props: {
|
||||
initialRole: String,
|
||||
},
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
role: this.initialRole,
|
||||
expanded: false,
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggle: function() {
|
||||
this.expanded = !this.expanded
|
||||
},
|
||||
radioChange: function(e) {
|
||||
this.role = e.target.value
|
||||
emitEvent('field-change', this, {
|
||||
value: e.target.value,
|
||||
valid: true,
|
||||
name: this.name,
|
||||
watch: true,
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
@@ -1,34 +0,0 @@
|
||||
import { set } from 'vue/dist/vue'
|
||||
|
||||
export default {
|
||||
name: 'environments-table',
|
||||
|
||||
props: {
|
||||
environments: Object,
|
||||
},
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
environmentsState: this.environments,
|
||||
}
|
||||
},
|
||||
|
||||
created: function() {
|
||||
Object.keys(this.environments).forEach(environment => {
|
||||
set(this.environmentsState[environment], 'isVisible', false)
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggle: function(e, environmentName) {
|
||||
this.environmentsState = Object.assign(this.environmentsState, {
|
||||
[environmentName]: Object.assign(
|
||||
this.environmentsState[environmentName],
|
||||
{
|
||||
isVisible: !this.environmentsState[environmentName].isVisible,
|
||||
}
|
||||
),
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user