mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 09:51:31 +08:00
update files
This commit is contained in:
@@ -25,7 +25,21 @@ window.addEventListener('DOMContentLoaded', function (){
|
||||
activeIndex: 0,
|
||||
configure: { projects: [] }
|
||||
},
|
||||
computed: {
|
||||
uniqueProjects: function (){
|
||||
var cache = {};
|
||||
|
||||
this.configure.projects.forEach(function (project){
|
||||
cache[project.name] = true;
|
||||
});
|
||||
|
||||
return cache;
|
||||
}
|
||||
},
|
||||
events: {
|
||||
'change-active': function (index){
|
||||
this.activeIndex = index;
|
||||
},
|
||||
'save-configure': function (){
|
||||
ipc.send('app-configure', 'save', normalize(this.configure));
|
||||
}
|
||||
|
Reference in New Issue
Block a user