workspaces 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a68a635327e6a8f69c8c7d29f881e5bb6eb12e57d66e1dff7ea31d8e3c8dc9ab
4
- data.tar.gz: 7306dff7993e982666f948a81a2131b7b6f165dfa61b4a729ae093b6feb7583e
3
+ metadata.gz: c5377d0d4a49b5a0b585540ddc02e4eeaaeb3e34a8a26dba5ce4db2107c85334
4
+ data.tar.gz: d880d6274c7a79ca45f9fd39232310083c4709d5b3a3bdf630d6eee716563278
5
5
  SHA512:
6
- metadata.gz: f2b165a4f127e77c942338f0ae5bcfc5d0f9ad016ea69bac7282dfa0dacc4158c860269d2ccd98eae794a56381d519bc192be6d0d44c2bb03f24060800464ed0
7
- data.tar.gz: 8e4a2a00f375c70bb10d16512ad11e8463357db5074061e682246ec2972eba108620118b29549534e8636a220efa6bd894b1e9516d4a8ffecf8f18ac960828a4
6
+ metadata.gz: aeb8a8dbd6e618499c3831d711734df8eb930f88656c0f2f66617f9835ddd1d994ef39c25362d784697cef44478847ed1df9d4ceb382a37066209d2bb427b9aa
7
+ data.tar.gz: 6fe026cae101124808e962b0280c64a4d851665b02789dad6b6eceeea7dcf0147d46a11ee21c7df261671c2369c606e01f3baee45ed28efbe47fd13d5ac8fefe
@@ -113,8 +113,20 @@
113
113
  // Re-run controls for one step. The server says which of them would be accepted right now (a
114
114
  // single step is only offered while the rest of the run is finished, and steps after the server
115
115
  // only while it is up), so the page never offers something that would be refused.
116
+ // The server-rendered first paint only includes this container when a step has controls, so the
117
+ // script creates it when it is missing instead of assuming it exists.
118
+ function stepControlsHolder(details) {
119
+ const existing = details.querySelector('.step-log__actions');
120
+ if (existing) return existing;
121
+ const holder = document.createElement('div');
122
+ holder.className = 'step-log__actions';
123
+ holder.hidden = true;
124
+ details.insertBefore(holder, details.querySelector('pre'));
125
+ return holder;
126
+ }
127
+
116
128
  function renderStepControls(details, step, resume) {
117
- const holder = details.querySelector('.step-log__actions');
129
+ const holder = stepControlsHolder(details);
118
130
  const modes = (resume && resume.step_modes && resume.step_modes[step.key]) || [];
119
131
  const labels = { only: 'Re-run this step', from: 'Re-run from here' };
120
132
  const signature = modes.join(',');
@@ -1,3 +1,3 @@
1
1
  module Workspaces
2
- VERSION = '0.1.15'
2
+ VERSION = '0.1.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Workspaces contributors