Fix archived column hiding issue in snapshots, fix typos [SCI-6589] (#3915)

This commit is contained in:
artoscinote 2022-03-03 13:52:56 +01:00 committed by GitHub
parent 32d005f480
commit f9a8358d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -216,8 +216,10 @@ var MyModuleRepositories = (function() {
if (!options.assign_mode) {
json.state.columns[0].visible = false;
}
json.state.columns[6].visible = false;
json.state.columns[7].visible = false;
if ($(tableContainer).data('type') !== 'snapshot') {
json.state.columns[6].visible = false;
json.state.columns[7].visible = false;
}
if (json.state.search) delete json.state.search;
callback(json.state);
});
@ -328,7 +330,7 @@ var MyModuleRepositories = (function() {
});
}
function refreshCreationSpanshotInfoText() {
function refreshCreationSnapshotInfoText() {
var snapshotsCount = FULL_VIEW_MODAL.find('.repository-snapshot-item').length;
var createSnapshotInfo = FULL_VIEW_MODAL.find('.create-snapshot-item .info');
if (snapshotsCount) {
@ -373,7 +375,7 @@ var MyModuleRepositories = (function() {
checkSnapshotStatus(snapshotItem);
}, STATUS_POLLING_INTERVAL);
animateSpinner(null, false);
refreshCreationSpanshotInfoText();
refreshCreationSnapshotInfoText();
}
});
e.stopPropagation();
@ -392,7 +394,7 @@ var MyModuleRepositories = (function() {
}
snapshotItem.remove();
animateSpinner(null, false);
refreshCreationSpanshotInfoText();
refreshCreationSnapshotInfoText();
}
});
e.stopPropagation();
@ -542,7 +544,7 @@ var MyModuleRepositories = (function() {
} else if (snapshotDate) {
title = repositoryName;
version = I18n.t('my_modules.repository.full_view.modal_snapshot_header', {
snaphot_date: snapshotDate
snapshot_date: snapshotDate
});
} else {
title = repositoryName;
@ -553,7 +555,7 @@ var MyModuleRepositories = (function() {
FULL_VIEW_MODAL.find('.repository-version').html(version);
}
function initRepoistoryAssignView() {
function initRepositoryAssignView() {
$('.repositories-dropdown-menu').on('click', '.repository', function(e) {
var assignUrlModal = $(this).data('assign-url-modal');
var updateUrlModal = $(this).data('update-url-modal');
@ -691,7 +693,7 @@ var MyModuleRepositories = (function() {
initRepositoryFullView();
initRepositoriesDropdown();
initVersionsSidebarActions();
initRepoistoryAssignView();
initRepositoryAssignView();
initSelectAllCheckbox();
initExportAssignedRows();
}

View file

@ -982,7 +982,7 @@ en:
export: 'Export'
full_view:
modal_live_header: ': Live version'
modal_snapshot_header: ': Snapshot of %{snaphot_date}'
modal_snapshot_header: ': Snapshot of %{snapshot_date}'
assign_modal_header: 'Assign from %{repository_name} inventory'
snapshots:
simple_view: