mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
* runAction model and adapter funcs * Hacky but functional action running from job index * remove proxy hack * runAction added to taskSubRow * Added tty and ws_handshake to job action endpoint call * delog * Bunch of streaming work * action started, running, and finished notification titles, neutral color, and ansi escape * Handle random alloc selection in the web ui * Run on All implementation in web ui * [ui] Helios two-step button and uniform title bar for Actions (#18912) * Initial pass at title bar button uniformity * Vertical align on actions dropdown toggle and small edits to prevent keynav overflow issue * We represent loading state w text and disable now * Pageheader component to align buttons * Buttons standardized * Actions dropdown reveal for multi-alloc job * Notification code styles * An action-having single alloc job * Mirageed * Actions-laden jobs in mirage * Separating allocCount and taskCount in mirage mocks * Unbreak stop job tests * Permissions for actions dropdown * tests for running actions from the job index page * running from a task row actions tests * some todocleanup * PR feedback addressed, including page helper for actions
27 lines
800 B
JavaScript
27 lines
800 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { attribute, clickable, isPresent, text } from 'ember-cli-page-object';
|
|
|
|
export default (scope) => ({
|
|
scope,
|
|
|
|
isPresent: isPresent(),
|
|
|
|
idle: clickable('[data-test-idle-button]'),
|
|
confirm: clickable('[data-test-confirm-button]'),
|
|
cancel: clickable('[data-test-cancel-button]'),
|
|
|
|
isDisabled: attribute('disabled', '[data-test-idle-button]'),
|
|
|
|
cancelIsDisabled: attribute('disabled', '[data-test-cancel-button]'),
|
|
confirmIsDisabled: attribute('disabled', '[data-test-confirm-button]'),
|
|
|
|
idleText: text('[data-test-idle-button]'),
|
|
cancelText: text('[data-test-cancel-button]'),
|
|
confirmText: text('[data-test-confirm-button]'),
|
|
confirmationMessage: text('[data-test-confirmation-message]'),
|
|
});
|