Add editor button to PWD
This commit is contained in:
@@ -440,7 +440,15 @@
|
|||||||
}).finally(function() {
|
}).finally(function() {
|
||||||
updateDeleteInstanceBtnState(false);
|
updateDeleteInstanceBtnState(false);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
|
$scope.openEditor = function(instance) {
|
||||||
|
console.log(instance);
|
||||||
|
var w = window.screen.availWidth * 45 / 100;
|
||||||
|
var h = window.screen.availHeight * 45 / 100;
|
||||||
|
$window.open('/sessions/' + instance.session_id + '/instances/'+instance.name+'/editor', 'editor',
|
||||||
|
'width='+w+',height='+h+',resizable,scrollbars=yes,status=1');
|
||||||
|
};
|
||||||
|
|
||||||
$scope.loadPlaygroundConf();
|
$scope.loadPlaygroundConf();
|
||||||
$scope.getSession($scope.sessionId);
|
$scope.getSession($scope.sessionId);
|
||||||
|
|||||||
@@ -119,6 +119,9 @@
|
|||||||
<md-button class="md-raised" ngclipboard data-clipboard-text="ssh {{instance.proxy_host}}@direct.{{host}}">SSH
|
<md-button class="md-raised" ngclipboard data-clipboard-text="ssh {{instance.proxy_host}}@direct.{{host}}">SSH
|
||||||
<md-tooltip md-direction="top">Copy!</md-tooltip>
|
<md-tooltip md-direction="top">Copy!</md-tooltip>
|
||||||
</md-button>
|
</md-button>
|
||||||
|
<md-button class="md-raised" ng-click="openEditor(instance)">
|
||||||
|
<md-icon class="material-icons">insert_drive_file</md-icon> Editor
|
||||||
|
</md-button>
|
||||||
</md-card-actions>
|
</md-card-actions>
|
||||||
</md-card>
|
</md-card>
|
||||||
<md-card flex md-theme="default" md-theme-watch >
|
<md-card flex md-theme="default" md-theme-watch >
|
||||||
@@ -203,6 +206,7 @@
|
|||||||
</md-card>
|
</md-card>
|
||||||
</md-list-item>
|
</md-list-item>
|
||||||
</md-list>
|
</md-list>
|
||||||
|
</div>
|
||||||
</md-dialog-content>
|
</md-dialog-content>
|
||||||
<md-dialog-actions layout="row">
|
<md-dialog-actions layout="row">
|
||||||
<span flex></span>
|
<span flex></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user