Skip to content

Commit

Permalink
01.03.04
Browse files Browse the repository at this point in the history
Fixed bug identifed in #18
  • Loading branch information
MintyTrebor authored Jun 16, 2024
1 parent 95f6d68 commit ecda9ca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions src/BtnCmdMainPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
<div class="mydiv">
<v-row class="pa-0 ma-0">
<v-col cols="12" class="pa-0 ma-0">
<!--<v-row mt-0>s
<!-- <v-row mt-0>s
<v-col><span class="text-caption">tab data= {{ directory }}</span></v-col>
<v-col><span class="text-caption">curr tab = {{ tmpDebgug }}</span></v-col>
</v-row>-->
</v-row> -->
<!-- <v-row mt-0><v-col><span class="text-caption">debug value = {{ printerMode }}</span></v-col></v-row> -->
<v-row>
<v-tabs class="elevation-2 pa-0 ma-0 mytabs-default" v-model="getCurrTabIndex">
Expand Down Expand Up @@ -971,9 +971,10 @@ export default {
bSBCCInstalled: false,
showSBCCEdit: false,
tmpSBCCDef: {},
btnCmdVersion: '01.03.03',
lastLayoutTabID: null,
btnCmdVersion: '01.03.04',
btnCmd : {
btnCmdVersion: '01.03.03',
btnCmdVersion: '01.03.04',
btnCmdIDUpdateRun: true,
systemSettings: {
lastID: 1,
Expand Down Expand Up @@ -1650,6 +1651,7 @@ export default {
async editModeToggle(){
this.setActionResponse('');
var tmpCurrTabID = this.currTab
//this.tmpDebgug = this.currTab
this.editMode = !this.editMode;
if(this.editMode){
await this.$nextTick()
Expand All @@ -1662,6 +1664,7 @@ export default {
createModeToggle(){
this.setActionResponse('');
this.createMode = !this.createMode;
this.lastLayoutTabID = this.currTab;
if(this.createMode){
var tmpArr = this.btnCmd.tabs.filter(item => item.embedTab === true);
if(tmpArr.length >= 1){
Expand All @@ -1676,8 +1679,10 @@ export default {
this.saveSettings();
await this.$nextTick();
var tmpCurrTabID = this.currTab;
if(this.createMode){
this.createMode = false
tmpCurrTabID = this.lastLayoutTabID;
}
if(this.editMode){
this.editMode = false
Expand All @@ -1692,7 +1697,10 @@ export default {
var tmpCurrTabID = this.currTab;
this.loadSettings();
await this.$nextTick();
if(this.createMode){this.createMode = false}
if(this.createMode){
this.createMode = false
tmpCurrTabID = this.lastLayoutTabID;
}
if(this.editMode){this.editMode = false}
await this.$nextTick()
this.onChangeTab(tmpCurrTabID);
Expand All @@ -1707,7 +1715,9 @@ export default {
}
},
onChangeTab(tmpTabID){
//console.log("Changing Tab to: ", tmpTabID)
this.currTab = tmpTabID;
//this.tmpDebgug = this.currTab
this.getCurrTabIndex = "tab-"+tmpTabID;
var tmpTabObj = this.btnCmd.tabs.filter(item => item.tabID == tmpTabID);
this.currTabObj = tmpTabObj[0];
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "BtnCmd",
"name": "BtnCmd",
"author": "Minty Trebor",
"version": "01.03.03",
"version": "01.03.04",
"license": "GPL-3.0-or-later",
"homepage": "https://github.com/MintyTrebor",
"dwcVersion": "auto",
Expand Down

0 comments on commit ecda9ca

Please sign in to comment.