show denied status if harvester version is not supported

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee
2024-11-12 11:50:42 +01:00
committed by Francesco Torchia
parent b566caf2e1
commit 4d2eef3b6c
4 changed files with 22 additions and 18 deletions
@@ -87,16 +87,6 @@ export default {
},
methods: {
disableClusterLink(row) {
// eslint-disable-next-line no-console
console.log('🚀 ~ disableClusterLink ~ row:', row);
if (!row.isSupportedHarvesterVersion) {
return true;
}
return this.navigating ? true : null;
},
async goToCluster(row) {
const timeout = setTimeout(() => {
// Don't show loading indicator for quickly fetched plugins
@@ -156,9 +146,9 @@ export default {
<td>
<span class="cluster-link">
<a
v-if="row.isReady"
v-if="row.isReady && row.isSupportedHarvesterVersion"
class="link"
:disabled="disableClusterLink(row)"
:disabled="navigating ? true : null"
@click="goToCluster(row)"
>{{ row.nameDisplay }}</a>
<span v-else>