Skip to content

Commit

Permalink
In the "Environments" tab know when we are in a dev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Nov 22, 2023
1 parent 5fc97f2 commit a432cdc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ load_once_from_file(true)
data: function () {
// ******** DATA ********
return {
changes_pane_header: "",
changes_pane_description: "",
commitMessage: "",
commitErrorMessage: "",
releaseMessage: "",
releaseErrorMessage: "",
changes_pane_header: "",
changes_pane_description: "",
commitMessage: "",
commitErrorMessage: "",
releaseMessage: "",
releaseErrorMessage: "",

pane_environments_in_dev_mode: true,

selectedTab: "changes",

Expand Down Expand Up @@ -350,10 +352,22 @@ load_once_from_file(true)
<div style="color:black">{{releaseMessage}}</div>
<div style="color:red">{{releaseErrorMessage}}</div>
</div>
<!-- --------------------------- ENVIRONMENTS PANE ------------------------------
| --------------------
|
|
|
-------------------------------------------------------------------------- -->
<div v-if='selectedTab=="environments"' style="padding:15px;">
DEV MODE: {{pane_environments_in_dev_mode}}
</div>
Expand Down Expand Up @@ -383,6 +397,16 @@ load_once_from_file(true)
await mm.pane_history_getCommitHistoryForThisComponent()
})
}
if (tabName == "environments") {
let commit = yz.helpers.getValueOfCodeString(this.text, "commit")
let release = yz.helpers.getValueOfCodeString(this.text, "release")
if (commit || release) {
mm.pane_environments_in_dev_mode = false
} else {
mm.pane_environments_in_dev_mode = true
}
//zzz
}
},
getText: async function ( ) {
// -----------------------------------------------------
Expand Down Expand Up @@ -1043,7 +1067,7 @@ load_once_from_file(true)
//----------------------------------------------------------------------------------
//
// /-------------------------------------/
// / pane_release_releaseCodePressed /
// / pane_release_releaseCodePressed /
// /-------------------------------------/
//
//----------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3309,7 +3309,6 @@ async function getSaveChain ( commitId ) {
// commitId Last save Code ID
// --------
//-----------------------------------------------------------/
//zzz
let returnRows = []

returnRows = await getPreviousSavesToLastCommit(
Expand Down Expand Up @@ -4551,7 +4550,6 @@ async function startServices ( ) {
app.post( "/http_post_commit_code" , async function (req, res) {
let ipfsHash = req.body.value.code_id;
let code = await yz.getCodeForCommit(dbsearch, ipfsHash)
//zzz
let previousSaves = await getSaveChain(ipfsHash)

//
Expand Down

0 comments on commit a432cdc

Please sign in to comment.