@konfuzio/document-validation-ui 0.1.11-dev.2 → 0.1.11-dev.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.11-dev.2",
3
+ "version": "0.1.11-dev.4",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -47,10 +47,6 @@
47
47
  &:hover {
48
48
  cursor: pointer;
49
49
  }
50
-
51
- &.navigation-disabled {
52
- display: none;
53
- }
54
50
  }
55
51
  }
56
52
 
@@ -17,10 +17,8 @@
17
17
  ]"
18
18
  >
19
19
  <div
20
- :class="[
21
- 'left-arrow navigation-arrow',
22
- !previousDocument && 'navigation-disabled',
23
- ]"
20
+ v-if="previousDocument"
21
+ class="left-arrow navigation-arrow"
24
22
  type="button"
25
23
  @click="navigateToDocument(previousDocument)"
26
24
  >
@@ -30,10 +28,8 @@
30
28
  <DocumentName :data-file-name="selectedDocument.data_file_name" />
31
29
 
32
30
  <div
33
- :class="[
34
- 'right-arrow navigation-arrow',
35
- !nextDocument && 'navigation-disabled',
36
- ]"
31
+ v-if="nextDocument"
32
+ class="right-arrow navigation-arrow"
37
33
  type="button"
38
34
  @click="navigateToDocument(nextDocument)"
39
35
  >
@@ -44,7 +44,7 @@ export function navigateToDocumentsList(path, projectId, userId) {
44
44
 
45
45
  const newPath = `${path}${slash}${parameters}`;
46
46
 
47
- window.location.pathname = newPath;
47
+ window.location.href = newPath;
48
48
  }
49
49
 
50
50
  export function isElementArray(element) {