From e906270dd3992650a04ca7632eccd9031d3c4d96 Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Mon, 8 Aug 2022 10:35:21 +0800 Subject: [PATCH] config_tools: highlight success or fail status in save window changing the green or yellow icon to highlight success or fail status in save window. Tracked-On: #7958 Signed-off-by: Kunhui-Li --- .../src-tauri/icons/Config_save_success.png | Bin 0 -> 10339 bytes .../icons/Config_save_warningfail.png | Bin 0 -> 10899 bytes .../configurator/src/pages/Config.vue | 31 ++++---- .../pages/Config/Scenario/SaveScenario.vue | 67 ++++++++++++++++++ 4 files changed, 86 insertions(+), 12 deletions(-) create mode 100644 misc/config_tools/configurator/packages/configurator/src-tauri/icons/Config_save_success.png create mode 100644 misc/config_tools/configurator/packages/configurator/src-tauri/icons/Config_save_warningfail.png create mode 100644 misc/config_tools/configurator/packages/configurator/src/pages/Config/Scenario/SaveScenario.vue diff --git a/misc/config_tools/configurator/packages/configurator/src-tauri/icons/Config_save_success.png b/misc/config_tools/configurator/packages/configurator/src-tauri/icons/Config_save_success.png new file mode 100644 index 0000000000000000000000000000000000000000..0512aa18b2106aa498cf6e6ac449574035598625 GIT binary patch literal 10339 zcma)?^;ZbU{{#JK-egb{{INdSQHPDxfu)64k8AJtDw?&cpv z_JFdO7@4g?)6$5*{nxKwgog8SfA*p&Q?GB=JO8$rVG7t?DElaa3Iq=zl*LWz=KDrL zQ=-(=T%DJ>qS(?dr~dS(^tbJTCK3_17bE_jRuh>YcE?Cd^Zy?O2ciPA)T65yO4j3_ z|MCmwp`9yNmo?VyWL;Y+g&S>!nHl%1Y_FluTIy~MsvTD4&T3Q}>tTwFTtS^FSJPdY z4ExAc8^TX*_wGup{l?jB*UQJBNdr-wO0GU9&l>GVoe6kKpwRv5f$rfijt{V8#$FPq zU8?h(DaP!3Bw3wQW!{}QNRf_}@l;l-AQVvQ`r{j$D%aL?Uq0vT_QI7=FjL4rMXk7X zl&n`QZ8ZBCiOdckq%C5SfX)wlL5ZQ~(ZeGr)ErqnzHl($Y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gD07E8IBE8y4>+eq%WF$ad7blHhdO z`rRa>K0s9Jiao~s+G3IgNLjdK&KFr1V@X5Ez(s;4SF)&F*h8iq&-v_FK4dI+qRCYT zo3e*#oP6Q@`Qq3Tf0Wf#p7SC2z_iN!&3dLzZ0eth=k7bm6@EPvjWZWFp)`Q$B$)D@ zM`O_wrx4C(P`H^9o zzta|lmSw0CIjSBsVbgoaf3qi`YU|hQvG6FSc>3@{=jgHsy*-OId-({kTU}f-=rhdX z+UJ%NN)$lL$J*ETIi`M)qaK5kVqc#*IuLRP{qsXP!Us~-=Pa+uRn{?u3gg_wSYhMJ z!0?BX5M$qGcn7CD%)QAF!)lDk!_L21Q)9=jW0?ZynL;Y0V`t(>P-C2|k+u}m34+dz zn6U%|;`h<`k667Tq$=NV;}fkBO>H+H#cE|NRmuul`R&}O;l=;Ou8em`3YO*u{OcYN z!S`1iYm6shi}+d}wzceDx)ADyJ8iwQ=cdlvA-xgwu_8oVL1hmj|CG6}pF literal 0 HcmV?d00001 diff --git a/misc/config_tools/configurator/packages/configurator/src-tauri/icons/Config_save_warningfail.png b/misc/config_tools/configurator/packages/configurator/src-tauri/icons/Config_save_warningfail.png new file mode 100644 index 0000000000000000000000000000000000000000..60e2d6860aca587522789eb74707f85621d705bc GIT binary patch literal 10899 zcmaKSRa6~3xGe4t#hs12ySux)6nA%bhvM$ExKmt<{K&@LHc+H&-2HOT>sjkOL|3x% zkYti?X5!RTWKod_ksu%-Q03*MG``B7uhfYE_mwMXuws4{kRBSc5)ciu#HU{k7#neA zaR`X!6y!H^*snICtDL?E1O(pKKs-#y|7dPSAs`s&001@&o=pv1 zZ6Cw*N7(hT+TKmy?E1={j)sedn%CJbug$E=f6@t+H4QHVmx1Zx_RD>bjUJx?7hT6I z(ys z?SJD2!`FcXD${y|7?lNP(r8mG$w(-MPX<$yg-c}b_s)dSviD@;+Uv z+985o{lj0g<|hhANvS0wK~Z@E{_b#ca4-c(k&cj14N#4J1ajR(vA-bc>$jAOa_Eb! z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EqwGCA(eRzInlG#ATdqjV7)mKk&$Wm>@7O1V!&Eur?b=KBJ?0d9u+OXGA(|EwP5N>FDheo z42ja)Mh<vdt*g5Q@A>3nAe$`)qAaPXU{23ae;Q!a1t9l#}%#1v#~sr6H=O5H~O%{R}O~ zLr;7n#j75==D)X705O-$(ua9$ov^r{P-p)kh>Ht|fV9Y8nb}e=L;t#}#YnxBHE-(! z@)!8Vl0ZPAsH`B)BV##5v%TCU@PC4*N}=EDt{ocQcYgvT*3&lmygoy!O?7t_f2_4A zHc-fHep|9!G%V4iRp($#in*uc^}qaAPH&=P6gd2d8>nL`F#8p9)QA>(8Ap~t$rs1* z8lf*7q2g~5hlw|^nD!e$@2g*?G&=+$imB`+%)ziirMB5V?Y1plH-J-VN$x&>mafQ1 zXv#ws5s9YwpO<3xbei`P+X%Qq@oQrde#;%0QIY{P^54Za|3K{m`R8=jP++@LVGhBM}|qJAdmO(hF<|82(m1W zNOP&1Q2IC66YI=+^sMaV;m$fjX~wgQyrd(W%yt7%@5MqtD??3SQC}G*qV7-L)u!^; zwsnP`&Lu~VWx_3q%!ZyzX>J<#Cn+Qk2j+~=qNJ#_;AyFe;TQI?sQ!H7$la1+e1{)9 zOMAojAvH-74U7gx0b_u10QlS%2AvR6X&IkC=??zLJ4}StHxc zKK3|D8?2IMp^MKEf{t-UEyNF7C7yrY0(U-}Ll>f^ZIOObiGw(0KN5)$}n7>m&`
- @@ -102,12 +103,13 @@ import Board from "./Config/Board.vue"; import Scenario from "./Config/Scenario.vue"; import TabBox from "./Config/ConfigForm/TabBox.vue"; import ConfigForm from "./Config/ConfigForm.vue"; +import SaveScenario from "./Config/Scenario/SaveScenario.vue"; import configurator from "../lib/acrn"; export default { name: "Config", - components: {ConfigForm, TabBox, Scenario, Icon, Board, Banner, AngleLeft}, + components: {SaveScenario,ConfigForm, TabBox, Scenario, Icon, Board, Banner, AngleLeft}, props: { WorkingFolder: {type: String}, isNewConfig: {type: String} @@ -134,7 +136,9 @@ export default { currentBoardManu: '', CurrentBoardProd: '', showFlag: false, - errors: [] + errors: [], + totalMsg: "", + showTotalMessageFlag: false, } }, computed: { @@ -427,17 +431,17 @@ export default { } await this.assignVMID() let msg = [ - "scenario xml saved\n", + "Scenario xml saved\n", "Settings validated\n", - "launch scripts generated\n" + "Launch scripts generated\n" ]; let errmsg = [ - "scenario xml save failed\n", + "Scenario xml save failed\n", "Settings validate failed\n", - "launch scripts generate failed\n" + "Launch scripts generate failed\n" ]; let stepDone = 0 - let totalMsg = msg.length // msg and errMsg must be same length. + let totalMsgLength = msg.length // msg and errMsg must be same length. let needSaveLaunchScript = false this.scenario.hv.CACHE_REGION = configurator.cat.getScenarioDataFromCAT() @@ -452,7 +456,7 @@ export default { } }) if (!needSaveLaunchScript) { - totalMsg = totalMsg - 1 // remove the 'launch script' related mssage. + totalMsgLength = totalMsgLength - 1 // remove the 'launch script' related mssage. } // begin write down and verify @@ -491,7 +495,7 @@ export default { if (!_.isEmpty(result)) { stepDone = 3 } - alert(`${msg.slice(0, stepDone).join('')} \nAll files successfully saved to your working folder ${this.WorkingFolder}`) + this.totalMsg = `${msg.slice(0, stepDone).join('')} \nAll files successfully saved to your working folder ${this.WorkingFolder}` }) .catch((err) => { // show error message @@ -499,10 +503,13 @@ export default { let outmsg = '' for (var i = 0; i < stepDone; i++) outmsg += msg[i] - for (i = stepDone; i < totalMsg; i++) + for (i = stepDone; i < totalMsgLength; i++) outmsg += errmsg[i] - alert(`${outmsg} \n Please check your configuration`) + this.totalMsg = `${outmsg} \n Please check your configuration` }) + + this.showTotalMessageFlag = true + return this.totalMsg } } } diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/Scenario/SaveScenario.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/Scenario/SaveScenario.vue new file mode 100644 index 000000000..9960da41a --- /dev/null +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/Scenario/SaveScenario.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file