mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-06-02 02:14:47 +12:00
0.1.7-DEV-6.1: fixed a few bugs, added a few fields
This commit is contained in:
parent
e240365d6f
commit
922f15cde5
|
@ -27,10 +27,10 @@
|
|||
</q-item-section>
|
||||
<q-item-section>
|
||||
<span class="text-weight-medium">
|
||||
{{(isReversed) ? localInput[index].affix : input.value}}
|
||||
{{(isReversed) ? `${localInput[index].affix}:` : input.value}}
|
||||
</span>
|
||||
<span v-if="localInput[index].affix" class="inline-block q-ml-xs text-italic listNote">
|
||||
{{(!isReversed) ? `(${localInput[index].affix})` : ` - ${input.value}`}}
|
||||
{{(!isReversed) ? `(${localInput[index].affix})` : ` ${input.value}`}}
|
||||
</span>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
|
@ -177,7 +177,6 @@
|
|||
clickable
|
||||
v-ripple
|
||||
v-close-popup
|
||||
v-on="scope.itemEvents"
|
||||
@click="localInput[index].affix = value"
|
||||
>
|
||||
<q-item-section>
|
||||
|
|
|
@ -658,7 +658,7 @@ export default class Field_MultiRelationship extends FieldBase {
|
|||
this.filterList = extend(true, [], this.allTypeDocuments)
|
||||
|
||||
// @ts-ignore
|
||||
this.filterList = advancedDocumentFilter(needle, this.filterList, this.SGET_allBlueprints, this.filterList)
|
||||
this.filterList = advancedDocumentFilter(needle, this.filterList, this.SGET_allBlueprints, this.SGET_allDocuments.docs)
|
||||
.filter((obj) => obj._id !== this.currentId)
|
||||
|
||||
if (this.$refs[`multieRelationshipField${this.inputDataBluePrint.id}`] && this.filterList.length > 0) {
|
||||
|
|
|
@ -613,7 +613,7 @@ export default class Field_SingleRelationship extends FieldBase {
|
|||
const needle = val.toLowerCase()
|
||||
this.filterList = extend(true, [], this.allTypeDocuments)
|
||||
// @ts-ignore
|
||||
this.filterList = advancedDocumentFilter(needle, this.filterList, this.SGET_allBlueprints, this.filterList)
|
||||
this.filterList = advancedDocumentFilter(needle, this.filterList, this.SGET_allBlueprints, this.SGET_allDocuments.docs)
|
||||
.filter((obj) => obj._id !== this.currentId)
|
||||
|
||||
if (this.$refs[`singleRelationshipField${this.inputDataBluePrint.id}`] && this.filterList.length > 0) {
|
||||
|
|
|
@ -663,7 +663,7 @@ body .q-tooltip {
|
|||
.documentLabelWrapper {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
padding-right: 30px;
|
||||
padding-right: 25px;
|
||||
}
|
||||
|
||||
.documentLabelIcon {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
- Fixed a bug that was causing changed to document blueprints to not update properly
|
||||
- Fixed a bug affecting single-to-single and many-to-single relationships in case deleteted values were lingering in the connected data
|
||||
- Fixed a bug that was causing improper rendering of the project overview graph legends
|
||||
- Fixed a bug where the advanced search wasn't working properly for local relationship fields inside a document in the case of fields value search
|
||||
|
||||
### New features
|
||||
|
||||
|
|
|
@ -1098,7 +1098,7 @@ export const charactersBlueprint: I_Blueprint = {
|
|||
},
|
||||
{
|
||||
id: "possessedCurrencies",
|
||||
name: "Whealth/Owned Currencies",
|
||||
name: "Wealth/Owned Currencies",
|
||||
type: "manyToNoneRelationship",
|
||||
icon: "fas fa-coins",
|
||||
sizing: 6,
|
||||
|
|
|
@ -337,6 +337,28 @@ export const racesBlueprint: I_Blueprint = {
|
|||
connectedField: "pairedRacesSkills"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "pairedProducedFromResources",
|
||||
name: "Resources/Materials produced from the Species/Race/Flora/Fauna",
|
||||
type: "manyToManyRelationship",
|
||||
icon: "mdi-gold",
|
||||
sizing: 6,
|
||||
relationshipSettings: {
|
||||
connectedObjectType: "resources",
|
||||
connectedField: "pairedProducedFromRaces"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "pairedUsedResourcesResources",
|
||||
name: "Resources/Materials used by Species/Race/Flora/Fauna",
|
||||
type: "manyToManyRelationship",
|
||||
icon: "mdi-gold",
|
||||
sizing: 6,
|
||||
relationshipSettings: {
|
||||
connectedObjectType: "resources",
|
||||
connectedField: "pairedUsedResourcesRaces"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "statsList",
|
||||
name: "Stats/Attributes",
|
||||
|
@ -380,7 +402,7 @@ export const racesBlueprint: I_Blueprint = {
|
|||
"Minor",
|
||||
"Medium",
|
||||
"Severe",
|
||||
"Imcapacitating",
|
||||
"Incapacitating",
|
||||
"Deadly"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -410,6 +410,28 @@ export const resourcesBlueprint: I_Blueprint = {
|
|||
connectedField: "pairedResourcesProduced"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "pairedProducedFromRaces",
|
||||
name: "Produced from Species/Races/Flora/Fauna",
|
||||
type: "manyToManyRelationship",
|
||||
icon: "fas fa-dragon",
|
||||
sizing: 6,
|
||||
relationshipSettings: {
|
||||
connectedObjectType: "races",
|
||||
connectedField: "pairedProducedFromResources"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "pairedUsedResourcesRaces",
|
||||
name: "Used by Species/Races/Flora/Fauna",
|
||||
type: "manyToManyRelationship",
|
||||
icon: "fas fa-dragon",
|
||||
sizing: 6,
|
||||
relationshipSettings: {
|
||||
connectedObjectType: "races",
|
||||
connectedField: "pairedUsedResourcesResources"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "description",
|
||||
name: "Description & History",
|
||||
|
|
|
@ -174,7 +174,7 @@ export const many_changeRelationshipToAnotherObject = async (
|
|||
|
||||
if (fieldType === "manyToSingleRelationship") {
|
||||
// @ts-ignore
|
||||
const removedValues = await single_removeRelationshipFromAnotherObject(removedValue, {})
|
||||
const removedValues = await single_removeRelationshipFromAnotherObject({}, removedValue)
|
||||
if (removedValues) {
|
||||
updatedDocuments.push(removedValues)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue