Skip to content

Commit

Permalink
fixup crmMosaicoBlockDesign - Accept variant. Extract methods getProp…
Browse files Browse the repository at this point in the history
…(), setProp(), deleteProp()
  • Loading branch information
totten committed Feb 2, 2024
1 parent 79318a6 commit b957e11
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ang/crmMosaico/BlockDesign.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@
return crmStatus({start: ts('Loading...'), success: null}, promise);
},
hasSelection: function() {
const mailing = scope.mailing;
return !!getProp('mosaicoTemplate');
},
hasMarkup: function() {
const mailing = scope.mailing;
return !!getProp('body_html');
},
// Figure out which "template" was previously used with a "mailing."
Expand All @@ -79,7 +77,6 @@
},
// Edit a mailing in Mosaico.
edit: function() {
const mailing = scope.mailing;
if (crmMosaicoIframe) {
crmMosaicoIframe.show();
return;
Expand Down Expand Up @@ -115,7 +112,6 @@
syncModel(viewModel);

var model = {mailing: $scope.mailing, attachments: $scope.attachments};
console.log('test!', model);
var options = CRM.utils.adjustDialogDefaults(angular.extend(
{autoOpen: false, title: ts('Preview / Test'), width: 550},
options
Expand Down

0 comments on commit b957e11

Please sign in to comment.