mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-02 21:28:47 +08:00
CI Build Artifacts (commit: 2b9d093b38, version: 1.9.0-rc4)
This commit is contained in:
1 parent
e1846f35a0
commit
23b8a2d226
86 files changed
+920
-2
No files matched your search
@@ -0,0 +1,2 @@
|
||||
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_9_0_rc4"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_9_0_rc4"]||[]).push([[973],{26522:function(e,t,r){r.r(t),r.d(t,{default:function(){return T}});var a=r(9274);const n={class:"mt-10"},o={class:"mb-10"},l={class:"mb-10 text-warning"},s={class:"ml-20"},c={key:1,class:"ml-20"},i={key:2,class:"ml-20"},m={key:3,class:"ml-20"},d={key:4,class:"ml-20"},p={key:5,class:"ml-20"};function u(e,t,r,u,h,v){const k=(0,a.resolveComponent)("Banner"),y=(0,a.resolveDirective)("clean-html");return(0,a.openBlock)(),(0,a.createElementBlock)("div",n,[(0,a.createElementVNode)("div",o,[(0,a.createTextVNode)((0,a.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:e.resourceType}))+" ",1),(0,a.withDirectives)((0,a.createElementVNode)("span",null,null,512),[[y,e.resourceNames(e.names,null,e.t)]])]),t[1]||(t[1]=(0,a.createElementVNode)("hr",{class:"mb-10"},null,-1)),(0,a.createElementVNode)("div",l,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"icon icon-warning icon-lg mr-5"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.t("harvester.addons.vmMigration.deleteDialog.warning")),1)]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.relatedSummary,t=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:`${t.namespace}/${t.planName}`,class:"mb-10"},[(0,a.createElementVNode)("div",null,"• "+(0,a.toDisplayString)(e.t("harvester.addons.vmMigration.labels.migration"))+":",1),t.migrations.length?((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(t.migrations,e=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:`${e.namespace}/${e.name}`},[(0,a.createElementVNode)("div",s," - "+(0,a.toDisplayString)(e.name),1)]))),128)):((0,a.openBlock)(),(0,a.createElementBlock)("div",c," - - ")),(0,a.createElementVNode)("div",null,"• "+(0,a.toDisplayString)(e.t("harvester.addons.vmMigration.labels.networkMap"))+":",1),t.networkMap?((0,a.openBlock)(),(0,a.createElementBlock)("div",i," - "+(0,a.toDisplayString)(t.networkMap.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",m," - - ")),(0,a.createElementVNode)("div",null,"• "+(0,a.toDisplayString)(e.t("harvester.addons.vmMigration.labels.storageMap"))+":",1),t.storageMap?((0,a.openBlock)(),(0,a.createElementBlock)("div",d," - "+(0,a.toDisplayString)(t.storageMap.name),1)):((0,a.openBlock)(),(0,a.createElementBlock)("div",p," - - "))]))),128)),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.errors,(e,t)=>((0,a.openBlock)(),(0,a.createBlock)(k,{key:t,color:"error",label:e},null,8,["label"]))),128))])}var h=r(65359),v=r(92043),k=r(99726),y=r(32766),g=(0,a.defineComponent)({name:"PromptRemoveForkliftPlanDialog",emits:["errors"],props:{value:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},type:{type:String,required:!0},close:{type:Function,required:!0},doneLocation:{type:Object,default:()=>{}}},data(){return{errors:[],removing:!1}},computed:{...(0,h.aH)("action-menu",["toRemove"]),...(0,h.L8)({t:"i18n/t"}),existingRelatedResources(){const e=this.$store.getters["currentProduct"].inStore;return{[y.rk.FORKLIFT_MIGRATION]:this.$store.getters[`${e}/all`](y.rk.FORKLIFT_MIGRATION)||[],[y.rk.FORKLIFT_NETWORK_MAP]:this.$store.getters[`${e}/all`](y.rk.FORKLIFT_NETWORK_MAP)||[],[y.rk.FORKLIFT_STORAGE_MAP]:this.$store.getters[`${e}/all`](y.rk.FORKLIFT_STORAGE_MAP)||[]}},resourceType(){return this.t('typeLabel."forklift.konveyor.io.plan"',{count:this.names?.length||1})},relatedSummary(){const e=this.existingRelatedResources;return(this.value||[]).map(t=>{const r=t?.metadata?.name||"-",a=t?.metadata?.namespace||"",n=e[y.rk.FORKLIFT_MIGRATION].filter(e=>this.ownedByPlan(e,t)).map(e=>({name:e?.metadata?.name,namespace:e?.metadata?.namespace||a})),o=e[y.rk.FORKLIFT_NETWORK_MAP].find(e=>this.ownedByPlan(e,t)),l=e[y.rk.FORKLIFT_STORAGE_MAP].find(e=>this.ownedByPlan(e,t));return{planName:r,namespace:a,migrations:n,networkMap:o?{namespace:o?.metadata?.namespace||a,name:o?.metadata?.name}:null,storageMap:l?{namespace:l?.metadata?.namespace||a,name:l?.metadata?.name}:null}})}},async mounted(){const e=this.$store.getters["currentProduct"].inStore;try{await Promise.all([this.$store.dispatch(`${e}/findAll`,{type:y.rk.FORKLIFT_MIGRATION}),this.$store.dispatch(`${e}/findAll`,{type:y.rk.FORKLIFT_NETWORK_MAP}),this.$store.dispatch(`${e}/findAll`,{type:y.rk.FORKLIFT_STORAGE_MAP})])}catch{}},methods:{resourceNames:v.Nr,ownedByPlan(e,t){const r=t?.metadata?.name,a=t?.metadata?.uid,n=e?.metadata?.ownerReferences||[];return!!r&&n.some(e=>"Plan"===e?.kind&&e?.name===r&&(!a||!e?.uid||e.uid===a))},buildDeleteTargets(){const e=this.existingRelatedResources,t=new Map,r=(e,r)=>{const a=r?.metadata?.name,n=r?.metadata?.namespace;if(!a)return;const o=`${e}|${n}|${a}`;t.set(o,{type:e,name:a,namespace:n})};for(const a of this.value||[])e[y.rk.FORKLIFT_NETWORK_MAP].filter(e=>this.ownedByPlan(e,a)).forEach(e=>Line truncated
|
||||
//# sourceMappingURL=harvester-1.9.0-rc4.umd.min.promptRemove.js.map
|
||||
Reference in new issue
Block a user