Remove survey prompts, as no longer accepting new submissions (#646)

This reverts commit 3935d3ef92.
This commit is contained in:
Michael Irwin
2025-01-27 14:01:30 -05:00
committed by GitHub
parent e1434ba283
commit 0f5d302aa7
2 changed files with 9 additions and 62 deletions

View File

@@ -847,44 +847,6 @@
return "None";
}
}])
.controller("SurveyToastController", function($mdToast) {
var ctrl = this;
ctrl.openSurvey = function() {
$mdToast.hide("ok");
}
ctrl.closeToast = function() {
$mdToast.hide();
}
})
.component('surveyRequest', {
template : "<md-button class='md-mini' ng-click='$ctrl.openSurvey()'>Give feedback</md-button>",
controller : function($mdToast, $timeout) {
var $ctrl = this;
$ctrl.$onInit = function() {
window.$mdToast = $mdToast;
$timeout(function() {
$mdToast.show({
hideDelay: 0,
position: 'bottom right',
controller: "SurveyToastController",
controllerAs: "ctrl",
bindToControlller: true,
templateUrl: "survey-toast.html"
}).then(function (result) {
if (result === "ok") {
$ctrl.openSurvey();
}
});
}, 300000); // Display toast after five minutes
}
$ctrl.openSurvey = function() {
window.open("https://docker.qualtrics.com/jfe/form/SV_267blbhIjjf3Mma", "_blank");
}
},
})
.service('TerminalService', ['$window', '$rootScope', function($window, $rootScope) {
var fullscreen;
var fontSize = getFontSize();

View File

@@ -70,7 +70,6 @@
<md-divider ng-if="!$last"></md-divider>
</md-list-item>
</md-list>
<survey-request></survey-request>
</md-content>
</md-sidenav>
<md-content flex layout-padding ng-if="!instances.length">
@@ -228,20 +227,6 @@
</md-button>
</md-dialog-actions>
</script>
<script type="text/ng-template" id="survey-toast.html">
<md-toast role="alert" aria-relevant="all">
<span class="md-toast-text">We'd love to hear about your usage of Play with Docker. Please take a moment to fill out our survey.</span>
<span class="md-visually-hidden">
Press Escape to dismiss.
</span>
<md-button class="md-highlight" ng-click="ctrl.openSurvey($event)">
Take Survey
</md-button>
<md-button ng-click="ctrl.closeToast()">
Not now
</md-button>
</md-toast>
</script>
<script type="text/ng-template" id="settings-modal.html">
<md-toolbar>
<div class="md-toolbar-tools">