Skip to content

Commit d3f21d3

Browse files
author
Erin Peach
authored
Merge pull request code-dot-org#26887 from code-dot-org/remove-unused-project-delete
Remove unused project delete
2 parents 78f97e1 + 4319c2b commit d3f21d3

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

apps/src/code-studio/header.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import $ from 'jquery';
44
import _ from 'lodash';
55
import progress from './progress';
6-
import Dialog from './LegacyDialog';
76
import { getStore } from '../redux';
87
import { shareProject } from './headerShare';
98
import { convertBlocksXml } from '../craft/code-connection/utils';
@@ -406,26 +405,6 @@ header.showProjectHeader = function () {
406405
e.stopPropagation(); // Clicks inside the popup shouldn't close it.
407406
});
408407

409-
$('.project_delete').click(function (e) {
410-
e.preventDefault(); // Don't change the hash.
411-
var dialog = new Dialog({body: '<img class="modal-image" src="' + appOptions.skin.staticAvatar + '">' +
412-
'<div id="confirm-delete" class="modal-content">' +
413-
'<p class="dialog-title">' + dashboard.i18n.t('project.delete_confirm_title') + '</p>' +
414-
'<p>' + dashboard.i18n.t('project.delete_confirm_text') + '</p>' +
415-
'<button id="again-button">' + dashboard.i18n.t('project.cancel') + '</button>' +
416-
'<button id="continue-button" style="float: right">' + dashboard.i18n.t('project.delete') + '</button></div>'
417-
});
418-
dialog.show();
419-
$('#confirm-delete #continue-button').click(function () {
420-
dashboard.project.delete(function () {
421-
location.href = dashboard.project.appToProjectUrl();
422-
});
423-
});
424-
$('#confirm-delete #again-button').click(function () {
425-
dialog.hide();
426-
});
427-
});
428-
429408
$('.project_new').click(dashboard.project.createNew);
430409

431410
$(document).on('click', '.project_list', function () {

0 commit comments

Comments
 (0)