Sha256: 4cce15c0852ce95b1f02307f52ee517ea3a5102f599b14705ce1e75f92e43238

Contents?: true

Size: 1.89 KB

Versions: 14

Compression:

Stored size: 1.89 KB

Contents

{{#if @mutable}}
  <button class="btn new-pattern" type="button" {{on "click" this.create}}>
    <FaIcon @icon="plus" />
    <span>New</span>
  </button>
{{/if}}

{{#each this.allPatterns as |pattern|}}
  <div class="pattern-wrapper">
    <Input
      @type="textfield"
      @value={{pattern.valueBuffer}}
      class="pattern-input"
      placeholder="Enter regular expression…"
      disabled={{or this.immutable pattern.saving}}
    />

    {{#if @mutable}}
      {{#if pattern.hasBuffer}}
        <button
          disabled={{pattern.saving}}
          class="btn ok no-text save shrink"
          type="button"
          {{on "click" (fn this.save pattern)}}
        >
          <FaIcon @icon="check" />
        </button>
      {{/if}}

      <button
        disabled={{pattern.saving}}
        class="btn no-text trash shrink"
        type="button"
        {{on "click" (fn this.trash pattern)}}
      >
        <FaIcon @icon="trash-alt" />
      </button>
    {{/if}}

    {{#if this.showCounter}}
      <input
        disabled="true"
        title="Number of logs that have been suppressed by this pattern"
        class="count shrink"
        value={{pattern.count}}
      />
      <button
        class="btn no-text reset shrink"
        title="Reset count of suppressed logs"
        disabled={{pattern.zeroCount}}
        type="button"
        {{on "click" (fn this.resetCount pattern)}}
      >
        <FaIcon @icon="redo-alt" />
      </button>
    {{/if}}
  </div>

  {{#if @applyRetroactivelyCheckbox}}
    {{#if pattern.isNew}}
      <div class="retro-checkbox">
        <input
          checked={{pattern.retroactive}}
          type="checkbox"
          class="checkbox"
          onclick={{fn this.checkboxChanged pattern}}
        />
        Apply retroactively
      </div>
    {{/if}}
  {{/if}}

  {{~#if pattern.error~}}
    <pre class="api-error">
      {{~pattern.error~}}
    </pre>
  {{~/if~}}
{{/each}}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
logster-2.20.0 client-app/app/templates/components/patterns-list.hbs
logster-2.19.1 client-app/app/templates/components/patterns-list.hbs
logster-2.19.0 client-app/app/templates/components/patterns-list.hbs
logster-2.18.1 client-app/app/templates/components/patterns-list.hbs
logster-2.18.0 client-app/app/templates/components/patterns-list.hbs
logster-2.17.1 client-app/app/templates/components/patterns-list.hbs
logster-2.17.0 client-app/app/templates/components/patterns-list.hbs
logster-2.16.0 client-app/app/templates/components/patterns-list.hbs
logster-2.15.0 client-app/app/templates/components/patterns-list.hbs
logster-2.14.0 client-app/app/templates/components/patterns-list.hbs
logster-2.13.1 client-app/app/templates/components/patterns-list.hbs
logster-2.13.0 client-app/app/templates/components/patterns-list.hbs
logster-2.12.2 client-app/app/templates/components/patterns-list.hbs
logster-2.12.1 client-app/app/templates/components/patterns-list.hbs