Example #1
0
 errorEventLogTypeFilter: function(item) {
   return utils.isEventLogTypeError(item);
 },
Example #2
0
        $(this.$el).on('click', '.delete-inline-item-confirmation-cancel', (e) => {
          e.preventDefault();
          this.hideDeleteConfirmationButtons(e);
        });
      },

      detached: function() {
        this.unwatchIsHighlighted();
      },

      methods: {
        getEventLogTypeClass(event) {
          if (utils.isEventLogTypeWarning(event)) {
            return 'event-type-warning';
          }
          if (utils.isEventLogTypeError(event)) {
            return 'event-type-error';
          }
          return 'event-type-info';
        },

        getTimeFromNow(event) {
          return utils.humanizeTimeFromNow(event.documentUpdateTimeMicros);
        },

        toggleExpandDescription($e) {
          $e.preventDefault();
          this.expanded = !this.expanded;
        },

        deleteEventLog: function($event) {