feat(sets): состав сета доступен и в архивной тренировке, после правки тренировка уходит на повторный синк
This commit is contained in:
@@ -14,7 +14,8 @@ export function renderCircuit(w, group, members, isReadOnly) {
|
||||
<div class="circuit-members"></div>
|
||||
</div>
|
||||
`;
|
||||
if (!isReadOnly) {
|
||||
// Состав сета можно править и в архивной тренировке — подходы не меняются
|
||||
if (!isReadOnly || w.endTime) {
|
||||
const controls = document.createElement('div');
|
||||
controls.className = 'circuit-controls';
|
||||
const editBtn = document.createElement('button');
|
||||
@@ -79,7 +80,7 @@ export function renderCircuit(w, group, members, isReadOnly) {
|
||||
}
|
||||
card.appendChild(roundsWrap);
|
||||
|
||||
if (!isReadOnly) {
|
||||
if (!isReadOnly || w.endTime) {
|
||||
const footRow = document.createElement('div');
|
||||
footRow.className = 'circuit-add';
|
||||
if (!w.endTime) {
|
||||
|
||||
Reference in New Issue
Block a user