Revize 356c8bce
Přidáno uživatelem Fantič před téměř 2 roky(ů)
src/stores/reducers/itemSlice.ts | ||
---|---|---|
8 | 8 |
high: { certainty: Certainty.High, color: "#FF0000" }, |
9 | 9 |
medium: { certainty: Certainty.Medium, color: "#FFFF00" }, |
10 | 10 |
low: { certainty: Certainty.Low, color: "#00FF00" }, |
11 |
unknown : { certainty: Certainty.Unknown, color: "#000000"} |
|
11 | 12 |
}; |
12 | 13 |
|
13 | 14 |
const initialState: ItemViewState = { |
... | ... | |
33 | 34 |
// getItem |
34 | 35 |
builder.addCase(getItem.fulfilled, (state, action) => { |
35 | 36 |
|
36 |
state.item.id = action.payload.id; |
|
37 |
state.item.authorDisplayName = action.payload.authorDisplayName; |
|
38 |
state.item.workName = action.payload.workName; |
|
39 |
state.item.concordances = action.payload.concordances; |
|
40 |
state.item.searchSubjects = action.payload.searchSubjects; |
|
41 |
state.item.inventoryItem = action.payload.inventoryItem; |
|
42 |
state.item.fullView = action.payload.fullView; |
|
37 |
state.item = { |
|
38 |
id : action.payload.id, |
|
39 |
authorDisplayName : action.payload.authorDisplayName, |
|
40 |
workName : action.payload.workName, |
|
41 |
concordances : action.payload.concordances, |
|
42 |
searchSubjects : action.payload.searchSubjects, |
|
43 |
inventoryItem : action.payload.inventoryItem, |
|
44 |
fullView : action.payload.fullView, |
|
45 |
} |
|
43 | 46 |
|
44 | 47 |
if (action.payload.fullView) { |
45 | 48 |
state.item.institution = action.payload.institution; |
Také k dispozici: Unified diff
re #10454: ItemView: concordances switch fix