删除证书之前检查是否正在被NS集群使用

This commit is contained in:
GoEdgeLab
2022-08-04 16:26:34 +08:00
parent 676b80a6f8
commit cb8207203a
3 changed files with 31 additions and 13 deletions

View File

@@ -30,7 +30,7 @@
<tr>
<td>域名</td>
<td>
<span class="ui label small" v-for="dnsName in info.dnsNames">{{dnsName}}</span>
<span class="ui label small basic" v-for="dnsName in info.dnsNames">{{dnsName}}</span>
</td>
</tr>
<tr>
@@ -42,7 +42,7 @@
<td>
<span class="disabled" v-if="servers.length == 0">暂时没有引用此证书的服务。</span>
<div v-if="servers.length > 0">
<a v-for="server in servers" :href="'/servers/server?serverId=' + server.id" target="_blank" class="ui label small">{{server.name}}</a>
<a v-for="server in servers" :href="'/servers/server/settings/https?serverId=' + server.id" target="_blank" class="ui label small basic">{{server.name}}</a>
</div>
</td>
</tr>

View File

@@ -20,7 +20,6 @@
<thead>
<tr>
<th>证书说明</th>
<th v-if="viewSize == 'normal'">顶级发行组织</th>
<th>域名</th>
<th>过期日期</th>
<th v-if="viewSize == 'normal'">引用服务</th>
@@ -29,14 +28,18 @@
</tr>
</thead>
<tr v-for="(cert, index) in certs">
<td><keyword :v-word="keyword">{{cert.name}}</keyword>
<td>
<a href="" @click.prevent="selectCert(cert)" v-if="!certInfos[index].isSelected"><keyword :v-word="keyword">{{cert.name}}</keyword></a>
<span v-if="certInfos[index].isSelected">{{cert.name}}</span>
<div v-if="cert.commonNames != null && cert.commonNames.length > 0" style="margin-top:0.5em">
<span class="grey small">{{cert.commonNames[cert.commonNames.length-1]}}</span>
</div>
<div v-if="cert.isCA" style="margin-top:0.5em">
<span class="ui label olive tiny">CA</span>
</div>
</td>
<td v-if="viewSize == 'normal'">
<span v-if="cert.commonNames != null && cert.commonNames.length > 0">{{cert.commonNames[cert.commonNames.length-1]}}</span>
</td>
<td>
<div v-for="dnsName in cert.dnsNames" style="margin-bottom:0.4em">
<span class="ui label tiny"><keyword :v-word="keyword">{{dnsName}}</keyword></span>