소스 검색

feat: added status badge to node selector

0xJacky 2 년 전
부모
커밋
8e88d6a4b3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      frontend/src/components/NodeSelector/NodeSelector.vue

+ 3 - 0
frontend/src/components/NodeSelector/NodeSelector.vue

@@ -38,9 +38,12 @@ const value = computed({
         <a-row>
             <a-col :span="8">
                 <a-checkbox :value="0">{{ $gettext('Local') }}</a-checkbox>
+                <a-badge color="green"/>
             </a-col>
             <a-col :span="8" v-for="node in data">
                 <a-checkbox :value="node.id">{{ node.name }}</a-checkbox>
+                <a-badge color="green" v-if="node.status"/>
+                <a-badge color="error" v-else/>
             </a-col>
         </a-row>
     </a-checkbox-group>