Api key name visual reduction (#1534)
This commit is contained in:
parent
26da16be2f
commit
316bfed043
@ -11,7 +11,7 @@
|
||||
<path d="M10.7756 14.334C10.4108 14.334 10.1226 14.6283 10.1226 15.0007C10.1226 15.3731 10.4108 15.6673 10.7756 15.6673C11.1404 15.6673 11.4287 15.3731 11.4287 15.0007C11.4287 14.6283 11.1404 14.334 10.7756 14.334Z" fill="#2683FF"/>
|
||||
</svg>
|
||||
</div>
|
||||
<p class="apikey-item-container__name">{{ apiKey.name }}</p>
|
||||
<p class="apikey-item-container__name">{{ apiKeyName }}</p>
|
||||
<p class="apikey-item-container__date">{{ new Date(apiKey.createdAt).toLocaleDateString() }}</p>
|
||||
</div>
|
||||
</template>
|
||||
@ -23,6 +23,17 @@ import { Component, Vue } from 'vue-property-decorator';
|
||||
{
|
||||
props: {
|
||||
apiKey: Object,
|
||||
},
|
||||
computed: {
|
||||
apiKeyName: function (): string {
|
||||
let name = this.$props.apiKey.name;
|
||||
|
||||
if (name.length < 12) {
|
||||
return name;
|
||||
}
|
||||
|
||||
return name.slice(0,12) + '...';
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
@ -106,4 +117,4 @@ export default class ApiKeysItem extends Vue {}
|
||||
fill: #2683FF;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -140,6 +140,10 @@ export default class AddApiKeyPopup extends Vue {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__close-cross-container {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.input-container.full-input {
|
||||
width: 100%;
|
||||
|
Loading…
Reference in New Issue
Block a user