feat: big update 07.05.26
This commit is contained in:
@@ -19,7 +19,6 @@ export type Carrier = {
|
||||
main_color: string;
|
||||
left_color: string;
|
||||
right_color: string;
|
||||
rgb_color: string;
|
||||
};
|
||||
|
||||
type CarrierData = {
|
||||
@@ -116,7 +115,6 @@ class CarrierStore {
|
||||
main_color: "",
|
||||
left_color: "",
|
||||
right_color: "",
|
||||
rgb_color: "",
|
||||
ru: {
|
||||
full_name: "",
|
||||
short_name: "",
|
||||
@@ -141,7 +139,7 @@ class CarrierStore {
|
||||
slogan: string,
|
||||
logoId: string,
|
||||
language: Language,
|
||||
colors?: { main_color?: string; left_color?: string; right_color?: string; rgb_color?: string }
|
||||
colors?: { main_color?: string; left_color?: string; right_color?: string }
|
||||
) => {
|
||||
this.createCarrierData.city_id = cityId;
|
||||
this.createCarrierData.logo = logoId;
|
||||
@@ -149,7 +147,6 @@ class CarrierStore {
|
||||
if (colors.main_color !== undefined) this.createCarrierData.main_color = colors.main_color;
|
||||
if (colors.left_color !== undefined) this.createCarrierData.left_color = colors.left_color;
|
||||
if (colors.right_color !== undefined) this.createCarrierData.right_color = colors.right_color;
|
||||
if (colors.rgb_color !== undefined) this.createCarrierData.rgb_color = colors.rgb_color;
|
||||
}
|
||||
this.createCarrierData[language] = {
|
||||
full_name: fullName,
|
||||
@@ -211,7 +208,6 @@ class CarrierStore {
|
||||
city_id: this.createCarrierData.city_id,
|
||||
slogan: (this.createCarrierData[language].slogan || "").trim(),
|
||||
...(this.createCarrierData.logo ? { logo: this.createCarrierData.logo } : {}),
|
||||
...(this.createCarrierData.rgb_color ? { rgb_color: this.createCarrierData.rgb_color } : {}),
|
||||
...(this.createCarrierData.main_color ? { main_color: this.createCarrierData.main_color } : {}),
|
||||
...(this.createCarrierData.left_color ? { left_color: this.createCarrierData.left_color } : {}),
|
||||
...(this.createCarrierData.right_color ? { right_color: this.createCarrierData.right_color } : {}),
|
||||
@@ -260,7 +256,6 @@ class CarrierStore {
|
||||
main_color: "",
|
||||
left_color: "",
|
||||
right_color: "",
|
||||
rgb_color: "",
|
||||
ru: {
|
||||
full_name: "",
|
||||
short_name: "",
|
||||
@@ -300,7 +295,6 @@ class CarrierStore {
|
||||
main_color: "",
|
||||
left_color: "",
|
||||
right_color: "",
|
||||
rgb_color: "",
|
||||
};
|
||||
|
||||
setEditCarrierData = (
|
||||
@@ -310,7 +304,7 @@ class CarrierStore {
|
||||
slogan: string,
|
||||
logoId: string,
|
||||
language: Language,
|
||||
colors?: { main_color?: string; left_color?: string; right_color?: string; rgb_color?: string }
|
||||
colors?: { main_color?: string; left_color?: string; right_color?: string }
|
||||
) => {
|
||||
this.editCarrierData.city_id = cityId;
|
||||
this.editCarrierData.logo = logoId;
|
||||
@@ -318,7 +312,6 @@ class CarrierStore {
|
||||
if (colors.main_color !== undefined) this.editCarrierData.main_color = colors.main_color;
|
||||
if (colors.left_color !== undefined) this.editCarrierData.left_color = colors.left_color;
|
||||
if (colors.right_color !== undefined) this.editCarrierData.right_color = colors.right_color;
|
||||
if (colors.rgb_color !== undefined) this.editCarrierData.rgb_color = colors.rgb_color;
|
||||
}
|
||||
this.editCarrierData[language] = {
|
||||
full_name: fullName,
|
||||
@@ -338,7 +331,6 @@ class CarrierStore {
|
||||
city: cityName,
|
||||
city_id: this.editCarrierData.city_id,
|
||||
...(this.editCarrierData.logo ? { logo: this.editCarrierData.logo } : {}),
|
||||
...(this.editCarrierData.rgb_color ? { rgb_color: this.editCarrierData.rgb_color } : {}),
|
||||
...(this.editCarrierData.main_color ? { main_color: this.editCarrierData.main_color } : {}),
|
||||
...(this.editCarrierData.left_color ? { left_color: this.editCarrierData.left_color } : {}),
|
||||
...(this.editCarrierData.right_color ? { right_color: this.editCarrierData.right_color } : {}),
|
||||
|
||||
Reference in New Issue
Block a user