mirror of https://github.com/rancher/ui.git
20 lines
334 B
JavaScript
20 lines
334 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
ip: null,
|
|
noIp: 'formatIp.noIp',
|
|
showCopy: false,
|
|
|
|
tagName: '',
|
|
|
|
displayIp: function() {
|
|
let ip = this.get('ip');
|
|
// @TODO real IPv6 shortening
|
|
if ( ip === '0:0:0:0:0:0:0:1' ) {
|
|
return '::1';
|
|
}
|
|
|
|
return ip;
|
|
}.property('ip'),
|
|
});
|