define([
], function() {
  "use strict";
  
  return {
    props: {
      title: {
        type: String,
        default: "Confirm"
      },
      closeCallback: {
        type: Function,
        default: function() {}
      },
      okCallback: {
        type: Function,
        default: function() {}
      }
   },
    template: '<transition name="modal">' +
    '  <div class="modal-mask">' +
    '    <div class="modal-wrapper">' +
    '      <div class="modal-container">' +
    '        <div class="modal-header"><slot name="header"><h4>{{ title }}</h4></slot></div>' +
    '        <div class="modal-body"><slot></slot></div>' +
    '        <div class="modal-footer text-right">' +
    '          <button type="button" class="btn btn-default" @click="closeCallback">Cancel</button>' +
    '          <button class="btn btn-primary primary" @click="okCallback">Ok</button>' +
    '        </div>' +
    '      </div>' +
    '    </div>' +
    '  </div>' +
    '</transition>'
  };
});

define([
], function() {
  "use strict";

  return {
    props: {
      title: {
        type: String,
        default: "Confirm"
      },
      closeCallback: {
        type: Function,
        default: undefined
      },
      okCallback: {
        type: Function,
        default: function() {}
      }
   },
    template: '<transition name="modal">' +
    '  <div class="modal-mask">' +
    '    <div class="modal-wrapper">' +
    '      <div class="modal-container">' +
    '        <div class="modal-header"><slot name="header"><h4>{{ title }}</h4></slot></div>' +
    '        <div class="modal-body"><slot></slot></div>' +
    '        <div class="modal-footer text-right">' +
    '          <button v-if="closeCallback !== undefined" type="button" class="btn btn-default" @click="closeCallback">Cancel</button>' +
    '          <button class="btn btn-primary primary" @click="okCallback">Ok</button>' +
    '        </div>' +
    '      </div>' +
    '    </div>' +
    '  </div>' +
    '</transition>'
  };
});

Change confirm dialog so that it doesn't show cancel button if not callback
Change confirm dialog so that it doesn't show cancel button if not callback
