mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Added view menu refresh option - Should help Fixes #1174 🎱
Signed-off-by: French Ben <me+git@frenchben.com>
This commit is contained in:
@@ -131,6 +131,17 @@ var MenuTemplate = function () {
|
||||
{
|
||||
label: 'View',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Refresh Container List',
|
||||
accelerator: util.CommandOrCtrl() + '+R',
|
||||
enabled: !!docker.host,
|
||||
click: function() {
|
||||
metrics.track('Refreshed Container List', {
|
||||
from: 'menu'
|
||||
});
|
||||
docker.fetchAllContainers();
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Toggle Chromium Developer Tools',
|
||||
accelerator: 'Alt+' + util.CommandOrCtrl() + '+I',
|
||||
|
||||
@@ -117,7 +117,7 @@ export default {
|
||||
if (!containerData.HostConfig || (containerData.HostConfig && !containerData.HostConfig.PortBindings)) {
|
||||
containerData.PublishAllPorts = true;
|
||||
}
|
||||
|
||||
|
||||
if (image.Config.Cmd) {
|
||||
containerData.Cmd = image.Config.Cmd;
|
||||
} else if (!image.Config.Entrypoint) {
|
||||
@@ -174,6 +174,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
containerServerActions.allUpdated({containers: _.indexBy(containers.concat(_.values(this.placeholders)), 'Name')});
|
||||
this.logs();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user