You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/11/21 00:39:38 UTC
[airavata-django-portal] branch master updated: AIRAVATA-2907
Improve default cred styling
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 60f7de4 AIRAVATA-2907 Improve default cred styling
60f7de4 is described below
commit 60f7de489a3051672077416fca0385be97aaf054
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Tue Nov 20 19:39:27 2018 -0500
AIRAVATA-2907 Improve default cred styling
---
.../src/components/gatewayprofile/StoragePreferenceList.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/django_airavata/apps/admin/static/django_airavata_admin/src/components/gatewayprofile/StoragePreferenceList.vue b/django_airavata/apps/admin/static/django_airavata_admin/src/components/gatewayprofile/StoragePreferenceList.vue
index 7ec5c1c..cababac 100644
--- a/django_airavata/apps/admin/static/django_airavata_admin/src/components/gatewayprofile/StoragePreferenceList.vue
+++ b/django_airavata/apps/admin/static/django_airavata_admin/src/components/gatewayprofile/StoragePreferenceList.vue
@@ -22,6 +22,12 @@
<template slot="item-list" slot-scope="slotProps">
<b-table striped hover :fields="fields" :items="slotProps.items" sort-by="storageResourceId">
+ <template slot="resourceSpecificCredentialStoreToken" slot-scope="data">
+ {{ data.value }}
+ <b-badge v-if="defaultCredentialStoreToken && !data.item.resourceSpecificCredentialStoreToken">
+ Default
+ </b-badge>
+ </template>
<template slot="action" slot-scope="data">
<b-link class="action-link" @click="toggleDetails(data)">
Edit
@@ -158,7 +164,7 @@ export default {
},
getCredentialName(token) {
if (token === null && this.defaultCredentialSummary) {
- return this.defaultCredentialSummary.description + " (default)";
+ return this.defaultCredentialSummary.description;
} else if (this.credentials) {
const cred = this.credentials.find(cred => cred.token === token);
if (cred) {