Remove survey prompts, as no longer accepting new submissions (#646)
This reverts commit 3935d3ef92.
This commit is contained in:
@@ -847,44 +847,6 @@
|
|||||||
return "None";
|
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) {
|
.service('TerminalService', ['$window', '$rootScope', function($window, $rootScope) {
|
||||||
var fullscreen;
|
var fullscreen;
|
||||||
var fontSize = getFontSize();
|
var fontSize = getFontSize();
|
||||||
|
|||||||
@@ -70,7 +70,6 @@
|
|||||||
<md-divider ng-if="!$last"></md-divider>
|
<md-divider ng-if="!$last"></md-divider>
|
||||||
</md-list-item>
|
</md-list-item>
|
||||||
</md-list>
|
</md-list>
|
||||||
<survey-request></survey-request>
|
|
||||||
</md-content>
|
</md-content>
|
||||||
</md-sidenav>
|
</md-sidenav>
|
||||||
<md-content flex layout-padding ng-if="!instances.length">
|
<md-content flex layout-padding ng-if="!instances.length">
|
||||||
@@ -228,20 +227,6 @@
|
|||||||
</md-button>
|
</md-button>
|
||||||
</md-dialog-actions>
|
</md-dialog-actions>
|
||||||
</script>
|
</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">
|
<script type="text/ng-template" id="settings-modal.html">
|
||||||
<md-toolbar>
|
<md-toolbar>
|
||||||
<div class="md-toolbar-tools">
|
<div class="md-toolbar-tools">
|
||||||
|
|||||||
Reference in New Issue
Block a user