PMGR: Debug output in frontend to indicate venv
This commit is contained in:
1 parent
4a97864e01
commit
e64975c85c
3 files changed
+9
-1
No files matched your search
@@ -86,6 +86,7 @@ $(function() {
|
||||
self.pipInstallDir = ko.observable();
|
||||
self.pipUseUser = ko.observable();
|
||||
self.pipUseSudo = ko.observable();
|
||||
self.pipVirtualEnv = ko.observable();
|
||||
self.pipAdditionalArgs = ko.observable();
|
||||
|
||||
self.pipUseSudoString = ko.computed(function() {
|
||||
@@ -94,6 +95,9 @@ $(function() {
|
||||
self.pipUseUserString = ko.computed(function() {
|
||||
return self.pipUseUser() ? "yes" : "no";
|
||||
});
|
||||
self.pipVirtualEnvString = ko.computed(function() {
|
||||
return self.pipVirtualEnv() ? "yes" : "no";
|
||||
});
|
||||
|
||||
self.working = ko.observable(false);
|
||||
self.workingTitle = ko.observable();
|
||||
@@ -224,13 +228,15 @@ $(function() {
|
||||
self.pipInstallDir(data.install_dir);
|
||||
self.pipUseUser(data.use_user);
|
||||
self.pipUseSudo(data.use_sudo);
|
||||
self.pipVirtualEnv(data.virtual_env);
|
||||
self.pipAdditionalArgs(data.additional_args);
|
||||
} else {
|
||||
self.pipCommand(undefined);
|
||||
self.pipVersion(undefined);
|
||||
self.pipInstallDir(undefined);
|
||||
self.pipUseUser(data.use_user);
|
||||
self.pipUseUser(undefined);
|
||||
self.pipUseSudo(undefined);
|
||||
self.pipVirtualEnv(undefined);
|
||||
self.pipAdditionalArgs(undefined);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user