open-vault/ui/app/components/doc-link.js

20 lines
418 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
const { Component, computed } = Ember;
export default Component.extend({
tagName: 'a',
attributeBindings: ['target', 'rel', 'href'],
layout: hbs`{{yield}}`,
target: '_blank',
rel: 'noreferrer noopener',
path: '/',
href: computed('path', function() {
return `https://www.vaultproject.io/docs${this.get('path')}`;
}),
});